package com.ktc.qa.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author lscl
 * @version 1.0
 * @intro: 映射问题实体类与回答实体类的关系
 */
@Entity
@Table(name = "tb_pl")
@IdClass(Pl.class)          // 映射多对多关系的那个实体类的字节码对象
public class Pl implements Serializable {

    @Id
    private String problemid;

    @Id
    private String labelid;

    @Override
    public String toString() {
        return "Pl{" +
                "problemid='" + problemid + '\'' +
                ", labelid='" + labelid + '\'' +
                '}';
    }

    public String getProblemid() {
        return problemid;
    }

    public void setProblemid(String problemid) {
        this.problemid = problemid;
    }

    public String getLabelid() {
        return labelid;
    }

    public void setLabelid(String labelid) {
        this.labelid = labelid;
    }
}
